package com.haust.item.com.sxt.feign;

import com.haust.commons.pojo.HaustResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("Haust-front-search")
public interface FrontSearchFeign {
    @PostMapping("/search/removeById")
    public HaustResult removeById(@RequestParam Long itemId);

    @PostMapping("/search/add")
    public HaustResult add(@RequestBody Map<String,Object> item);
}
